package block;

public class Person {
    private static int total;
    private int id;

    {
        System.out.println("非静态代码块默认的值：id = " + id);
        id = 1;
        System.out.println("非静态代码块修改后的值：id = " + id);
    }
    static {
        System.out.println("静态代码块默认的值：total = " + total);
        total = 100;
        System.out.println("静态代码块修改后的值：total = " + total);
    }


    public Person() {
        System.out.println("调用了 Person 构造器");
    }
}
